package com.ithiema.a02myfunction;

import java.util.ArrayList;
import java.util.Collections;

public class FunctionDemo2 {
    public static void main(String[] args) {
        //把数据转为大写
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "a", "b", "c");

        list.stream().map(String::toUpperCase).forEach(System.out::println);
    }
}
